package day0728;

import java.util.Scanner;

public class Test14 {

    static void inputLetters(String[][] poem){//2.输入20个文字
        Scanner sc=new Scanner(System.in);
        for (int i = 0; i < poem.length; i++){
            for (int j = 0; j < poem[0].length; j++) {
                poem[i][j]=sc.nextLine();
            }
        }
    }

    static void printPoem(String[][]  poem){//3.用printPoem将20个字以古体的格式打印出来
        for (int i = 0; i <poem[0].length ; i++) {
            for (int j = poem.length-1; j >= 0 ; j--) {
                System.out.print(poem[j][i]);
            }
            System.out.println();
        }
    }

    public static void main(String[] args) {
        String[][]    poem=new String[4][5];//1.准备4行5列空数组
        inputLetters(poem);//2.输入20个文字
        printPoem(poem);//3.用printPoem将20个字以古体的格式打印出来
    }


}
